<?php TPL::output('admin/global/header.tpl.htm'); ?>
<!--left-->
<?php TPL::output('admin/global/left.tpl.htm'); ?>
<!--left-->

<div id="main-content" style="margin:0 0 0 200px;">
	<div class="clear"></div>
	<div class="content-box">
		<div class="content-box-header">
			<h3> 积分与威望设置 </h3>
			<ul class="content-box-tabs">
			</ul>
			<div class="clear"></div>
		</div>
		<div class="content-box-content">
			<div id="notification_box" class="notification success png_bg" style="display:none;"> <a class="close" href="javascript:;"></a>
				<div name="notification_content"></div>
			</div>
			<div class="tab-content default-tab" id="tab1">
				<form id="_save_form" action="admin/setting/sys_save_ajax/" method="post">
					<fieldset>
					<p groupid="14" name="integral_system_enabled">
						<label>使用积分系统：</label>
						<input type="radio" name="integral_system_enabled" value="Y" <?php if ($this->setting['integral_system_enabled'] == 'Y'){ ?> checked="true"<?php } ?>/>
						是
						<input type="radio" name="integral_system_enabled" value="N" <?php if ($this->setting['integral_system_enabled'] == 'N'){ ?> checked="true"<?php } ?>/>
						否 </p>
					<p groupid="14" name="integral_unit">
						<label>积分单位：</label>
						<input name="integral_unit" class="text-input small-int" type="text" value="<?php echo $this->setting['integral_unit']; ?>"/>
					</p>
					<p groupid="14" name="integral_system_config_register">
						<label>新用户注册默认拥有积分：</label>
						<input name="integral_system_config_register" class="text-input small-int" type="text" value="<?php echo $this->setting['integral_system_config_register']; ?>"/>
					</p>
					<p groupid="14" name="integral_system_config_profile">
						<label>用户完善资料获得积分：</label>
						<input name="integral_system_config_profile" class="text-input small-int" type="text" value="<?php echo $this->setting['integral_system_config_profile']; ?>"/>
					</p>
					<p groupid="14" name="integral_system_config_invite">
						<label>用户邀请注册并成功邀请：</label>
						<input name="integral_system_config_invite" class="text-input small-int" type="text" value="<?php echo $this->setting['integral_system_config_invite']; ?>"/>
					</p>
					<p groupid="14" name="integral_system_config_best_answer">
						<label>最佳回复：</label>
						<input name="integral_system_config_best_answer" class="text-input small-int" type="text" value="<?php echo $this->setting['integral_system_config_best_answer']; ?>"/>
					</p>
					<p groupid="14" name="integral_system_config_answer_fold">
						<label>回复被折叠：</label>
						<input name="integral_system_config_answer_fold" class="text-input small-int" type="text" value="<?php echo $this->setting['integral_system_config_answer_fold']; ?>"/>
					</p>
					<p groupid="14" name="integral_system_config_new_question">
						<label>提交站点：</label>
						<input name="integral_system_config_new_question" class="text-input small-int" type="text" value="<?php echo $this->setting['integral_system_config_new_question']; ?>"/>
					</p>
					<p groupid="14" name="integral_system_config_new_answer">
						<label>回复站点：</label>
						<input name="integral_system_config_new_answer" class="text-input small-int" type="text" value="<?php echo $this->setting['integral_system_config_new_answer']; ?>"/>
					</p>
					<p groupid="14" name="integral_system_config_thanks">
						<label>感谢回复：</label>
						<input name="integral_system_config_thanks" class="text-input small-int" type="text" value="<?php echo $this->setting['integral_system_config_thanks']; ?>"/>
					</p>
					<p groupid="14" name="integral_system_config_invite_answer">
						<label>发起者邀请别人围观站点并评价：</label>
						<input name="integral_system_config_invite_answer" class="text-input small-int" type="text" value="<?php echo $this->setting['integral_system_config_invite_answer']; ?>"/>
					</p>
					<p groupid="4">
						<label>威望公式：log((((用户组威望系数x赞同数量-用户组威望系数x反对数量) + 发起者赞同反对威望系数 + 最佳回复威望系数) + 0.5), 对数底值)</label>
					</p>
					<p groupid="4" name="publisher_reputation_factor">
						<label>发起者赞同反对威望系数：</label>
						<input name="publisher_reputation_factor" class="text-input small-int" type="text" value="<?php echo get_setting('publisher_reputation_factor'); ?>"/>
					</p>
					<p groupid="4" name="best_answer_reput">
						<label>最佳回复威望系数：</label>
						<input name="best_answer_reput" class="text-input small-int" type="text" value="<?php echo get_setting('best_answer_reput'); ?>"/>
					</p>
					<p groupid="4" name="reputation_log_factor">
						<label>对数底值：<span style="font-weight:normal">(控制显示的威望值大小，底数越小威望值越大，底数越大威望值越小，系统默认数值是3)</span></label>
						<input name="reputation_log_factor" class="text-input small-int" type="text" value="<?php echo get_setting('reputation_log_factor'); ?>"/>
					</p>
					<p>
						<input class="button" type="button" onClick="ajax_post($('#_save_form'), _form_process);" value="  保  存  " />
					</p>
					</fieldset>
					<div class="clear"></div>
				</form>
			</div>
		</div>
		<div class="clear"></div>
		<div id="notf_tip" style="display:none;" class="notification png_bg"> <a href="javascript:;" class="close"><img src="<?php echo G_STATIC_URL;?>/admin/images/icons/cross_grey_small.png" alt="关闭" /></a>
			<div id="notf_cont"></div>
		</div>
	</div>
	<!-- footer -->
	<?php TPL::output('admin/global/footer.tpl.htm'); ?>
	<!-- footer -->
</div>
<!-- main -->
</div>
</body></html>